package net.joey.ognl;

import java.io.Serializable;

public class User2 extends User implements Something  ,Serializable{    
    
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer id;    
        
    private String name;    
        
    private Department department = new Department();    
        
    public User2() {    
            
    }

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	@Override
	public String toString() {
		return "User2 [id=" + id + ", name=" + name + ", department="
				+ department + "]";
	}    
            
        // setter and getters    
    
}    